// JavaScript Document

ipiresia = function(id, perigrafi, timi, katigoria) {
	this.id = id;
	this.perigrafi = perigrafi;
	this.timi = timi / 100;
	this.katigoria = katigoria;
	this.dom = {};
	
	this.init = function() {
//alert(this.id + " - " + this.perigrafi + " - " + this.timi + " - " + this.katigoria);
		this.dom.td = document.createElement("td");
		this.dom.td.setAttribute("id", this.perigrafi + "_td");
		this.dom.button = document.createElement("input");
		this.dom.button.setAttribute("type", "button");
		this.dom.button.setAttribute("class", "ipiresia_button");		
		this.dom.button.setAttribute("id", this.perigrafi + "_button");
		this.dom.button.setAttribute("value", this.perigrafi);
		this.dom.button.setAttribute("onClick", "globals.enter(this)");
		this.dom.button.father = this;
		
		this.dom.td.appendChild(this.dom.button);
		
	}
};
